package com.fxc.mybatis.entity;

import java.util.List;

public class PageInfo<T> {
    //总页数
    private int pages;

    //当前页数
    private int currentPage;

    //当前页面的数据集合
    private List<T> datas;

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }

    @Override
    public String toString() {
        return "PageInfo{" +
                "pages=" + pages +
                ", currentPage=" + currentPage +
                ", datas=" + datas +
                '}';
    }
}
